﻿package plugin.shop
{
    import com.core.*;
    import com.sh.game.control.*;

    public class ShopControl extends ModuleControl
    {

        public function ShopControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "shop")
            {
                if (param2.property == "npcid")
                {
                    this.target.npcid = int(param2.newvalue);
                }
                else if (param2.property == "getlist")
                {
                    this.target.mPage2.getList(param2.newvalue);
                }
                else if (param2.property == "worldlevel")
                {
                    this.target.mPage1.updateWorldlevel();
                }
            }
            return;
        }// end function

    }
}
